From: Florian Müllner Date: Sat, 9 Feb 2019 06:52:28 +0000 (+0100) Subject: aggregateMenu: Don't use system menu for width computation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~888^2^2~124 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1b169655ac395ed796571677cc417185403d2af0;p=gnome-shell.git aggregateMenu: Don't use system menu for width computation If the user's real name is too long to fit the menu comfortably, we are supposed to use the username instead. However since commit f8e5e3e435f, we no longer set a max-width on the menu as a whole, but instead base the width request on only "unellipsizable" children. For some reason the system menu ended up there, so the name is now allowed to grow indefinitely. Remove it from the list of size children to get the intended behavior back. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/400 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index d719c841e..f32e7f218 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -804,7 +804,6 @@ class AggregateMenu extends PanelMenu.Button { menuLayout.addSizeChild(this._location.menu.actor); menuLayout.addSizeChild(this._rfkill.menu.actor); menuLayout.addSizeChild(this._power.menu.actor); - menuLayout.addSizeChild(this._system.menu.actor); } });